.class public Les/sj0;
.super Ljava/lang/Object;
.source "AdDeepLinkManager.java"


# static fields
.field private static c:Les/sj0;


# instance fields
.field private a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/dj0;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Les/tj0;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/sj0;->a:Ljava/util/Map;

    return-void
.end method

.method public static a()Les/sj0;
    .locals 2

    .line 1
    sget-object v0, Les/sj0;->c:Les/sj0;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Les/sj0;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Les/sj0;->c:Les/sj0;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Les/sj0;

    invoke-direct {v1}, Les/sj0;-><init>()V

    sput-object v1, Les/sj0;->c:Les/sj0;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Les/sj0;->c:Les/sj0;

    return-object v0
.end method

.method private b(Ljava/lang/String;)Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/sj0;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method private c(Ljava/lang/String;)Les/dj0;
    .locals 2

    .line 1
    iget-object v0, p0, Les/sj0;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/dj0;

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Les/sj0;->a:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    return-object v0
.end method


# virtual methods
.method public a(Les/dj0;)V
    .locals 2

    if-nez p1, :cond_0

    return-void

    .line 7
    :cond_0
    invoke-virtual {p1}, Les/dj0;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 8
    iget-object v0, p0, Les/sj0;->a:Ljava/util/Map;

    invoke-virtual {p1}, Les/dj0;->b()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 9
    :cond_1
    iget-object v0, p0, Les/sj0;->a:Ljava/util/Map;

    invoke-virtual {p1}, Les/dj0;->b()Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :goto_0
    return-void
.end method

.method public a(Les/zi0;)V
    .locals 14

    if-eqz p1, :cond_2

    .line 18
    invoke-interface {p1}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 19
    :cond_0
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    if-nez v0, :cond_1

    .line 20
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    .line 21
    :cond_1
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    invoke-interface {p1}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v1

    new-instance v13, Les/tj0;

    const-wide/16 v3, 0x0

    invoke-interface {p1}, Les/zi0;->d()J

    move-result-wide v5

    invoke-interface {p1}, Les/zi0;->e()J

    move-result-wide v7

    .line 22
    invoke-interface {p1}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v9

    invoke-interface {p1}, Les/zi0;->f()Ljava/lang/String;

    move-result-object v10

    invoke-interface {p1}, Les/zi0;->s()Ljava/lang/String;

    move-result-object v11

    const-string v12, ""

    move-object v2, v13

    invoke-direct/range {v2 .. v12}, Les/tj0;-><init>(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    invoke-interface {v0, v1, v13}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2
    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    .line 24
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    if-eqz v0, :cond_1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 25
    :cond_0
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 26
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/tj0;

    .line 27
    invoke-virtual {v0}, Les/tj0;->a()V

    .line 28
    invoke-static {}, Les/qj0;->a()Les/qj0;

    move-result-object v1

    invoke-virtual {v1, v0}, Les/qj0;->a(Les/tj0;)V

    .line 29
    iget-object v0, p0, Les/sj0;->b:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;Les/nj0;)Z
    .locals 9
    .param p2    # Les/nj0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 10
    invoke-direct {p0, p1}, Les/sj0;->b(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    .line 11
    invoke-direct {p0, p1}, Les/sj0;->c(Ljava/lang/String;)Les/dj0;

    move-result-object v0

    if-nez v0, :cond_0

    return v1

    .line 12
    :cond_0
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v2

    const-string v3, "deeplink_url_app"

    invoke-virtual {v2, v3, p2}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    .line 13
    invoke-virtual {v0}, Les/dj0;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/zk0;->a(Ljava/lang/String;)Les/wj0;

    move-result-object v0

    .line 14
    invoke-virtual {v0}, Les/wj0;->a()I

    move-result v0

    const/4 v2, 0x1

    if-eq v0, v2, :cond_1

    const/4 v3, 0x3

    if-eq v0, v3, :cond_1

    .line 15
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string v0, "deeplink_open_fail"

    invoke-virtual {p1, v0, p2}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    return v1

    .line 16
    :cond_1
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v0

    const-string v1, "deeplink_open_success"

    invoke-virtual {v0, v1, p2}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    .line 17
    invoke-static {}, Les/lk0;->c()Les/ii0;

    move-result-object v3

    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {p2}, Les/nj0;->s()Les/lj0;

    move-result-object v5

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v8, p1

    invoke-interface/range {v3 .. v8}, Les/ii0;->a(Landroid/content/Context;Les/zi0;Les/xi0;Les/yi0;Ljava/lang/String;)V

    return v2

    :cond_2
    return v1
.end method
